package OOday01;

public class Student {
    String name;
    int age;
    String className;
    int stuId;
    Student(String name1,int age1,String className1,int stuId1) {
        name = name1;
        age = age1;
        className = className1;
        stuId = stuId1;
    }
    Student(){
    }
    void study(){
        System.out.println(name+"正在学习");
    }
    void sayHi(){
        System.out.println("大家好我叫"+name+"今年"+age+"岁了"+"在"+className+"班"+"学号为"+stuId);
    }
    void playWith(String anotherName){
        System.out.println(this.name+"正在和"+anotherName+"玩");
    }
}
